package com.exam.scjp5.objectives.section_1;

public class ExampleVarArgs
{
    public static void varArg(Integer...integers)
    {
        System.out.println("public static void varArg(Integer...integers)");
    }
    
    public static void varArg(int... i)
    {
        System.out.println("public static void varArg(int...i)");        
    }
    
    public static void main(String args[])
    {
        int ia[] = {1};
        int i = 1;
        
        varArg(ia);
        //varArg(i); // Remove comment and see what the complier will complain.
        
        Integer iA[] = {new Integer(1)};
        varArg(iA);
        //varArg(new Integer(1)); // Remove comment and see what the complier will complain.
    }
}
